﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Etapa1.SofRender
{
    public static class AlphaBlendingFunctions
    {
        public static Color ClassicalAlpha(Color inBuffer, Color calculatedNow)
        {
            float  alfa = calculatedNow.A / 255;
            return inBuffer.MultByConstColor(1 - alfa).AddColors(calculatedNow.MultByConstColor(alfa));
        }
        

    }
}
